var AppFaster = angular.module('faster',['$strap.directives','textAngular','ngResource']);

AppFaster.factory('UserService', function() {
	 
	return {
		user:user,
		avatar:avatar,
		authorTaskMe : (user.length!=0) ? true : false
	};
});
AppFaster.controller('MainController', function($scope,$http,$modal,UserService) {
	console.log(UserService)
	$scope.isGuest = UserService.authorTaskMe;
	$scope.headerUserInfo = '<img src="'+UserService.avatar.link+'"> <span>'+UserService.user.username+'</span>';
	$scope.projectname = project.name;
	
	
	$scope.checkFile = false;
	

	
	$scope.upload = function(x,y){
		$("form .fileinput-button input").trigger('click');
	}
	
});
